<template>
  <view class="page-header">
    <uv-icon size="20" name="arrow-left" @click="goBack" color="#fff"></uv-icon>
    <span class="page-header-title">{{ title }}</span>
    <slot>
      <!-- <text class="page-header-title">{{ title }}</text> -->
    </slot>
  </view>
</template>

<script  setup>

const props = defineProps({
  title: {
    type: String,
    default: ''
  }
})
</script>

<style scoped lang="scss">
@import '@/uni.scss';
.page-header {
  width: 100%;
  height: 40rpx;
  background: $uni-default-color;
  padding: 32rpx 0 24rpx 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-header-title {
  font-size: 40rpx;
  font-weight: bold;
  color: #fff;
}
</style> 